class Tag < ApplicationRecord
  validates :username, uniqueness: true, presence: true
  has_many :posts

  extend FriendlyId
  friendly_id :name, use: [ :slugged, :finders ]
end
